package com.yuneec.droneservice.model;

/**
 * Created by gjw on 2017/4/11.
 */

public class HardwareEvent {
    // 1~10 for Button  1~10
    // 11~20 for Switch 1~10
    // 21~30 for Wheel 1~10
    // 41 for Wifi
    // 42 for Battery
    // 43 for HDMI
    private int hwId;
    // For Button:0-release 1-prees 2-long press;
    // For Switch: 0-middle 1-right 2-left;
    // For Whell: 1-turn left -1-turn right
    // For Wifi: 0-disconnected, 1-connected, 2-Auth failed
    // For battery: 电池电量百分比(例如:15就代表电量还剩15%)
    // For HDMI: 0-disconnected, 1-connected
    private int value;

    public HardwareEvent() {
    }

    public HardwareEvent(int hwId, int value) {
        this.hwId = hwId;
        this.value = value;
    }

    public int getHwId() {
        return hwId;
    }

    public void setHwId(int hwId) {
        this.hwId = hwId;
    }

    public int getValue() {
        return value;
    }

    public void setValue(int value) {
        this.value = value;
    }

    @Override
    public String toString() {
        return "HardwareEvent{" +
                "hwId=" + hwId +
                ", value=" + value +
                '}';
    }
}
